/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class FoodDehydrator {
    static categoryCode = '010050028';

    static categoryName = '食物烘干机';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return FoodDehydrator.categoryCode;
    }

    get categoryName() {
        return FoodDehydrator.categoryName;
    }

    getCookTemperature(params) {
        return command({
            method: 'getCookTemperature',
            methodId: 'ptRSxcrS',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getCookTime(params) {
        return command({
            method: 'getCookTime',
            methodId: 'p3deZIu3',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getCurrentTemperature(params) {
        return command({
            method: 'getCurrentTemperature',
            methodId: 'pdN7VzQV',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getMode(params) {
        return command({
            method: 'getMode',
            methodId: 'pgh0u21Z',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getRemainTime(params) {
        return command({
            method: 'getRemainTime',
            methodId: 'pkpDAE2G',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pDrhgJEd',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWorkStatus(params) {
        return command({
            method: 'getWorkStatus',
            methodId: 'phEqY83L',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setCookTemperature(params) {
        return command({
            method: 'setCookTemperature',
            methodId: 'pGoxpNOA',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setCookTime(params) {
        return command({
            method: 'setCookTime',
            methodId: 'p1vZQT5r',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setMode(params) {
        return command({
            method: 'setMode',
            methodId: 'ppAX3Zgw',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setStart(params) {
        return command({
            method: 'setStart',
            methodId: 'pUPQLLYU',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setStop(params) {
        return command({
            method: 'setStop',
            methodId: 'pZgRrSNC',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'peH3bdpP',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default FoodDehydrator;
